package fms.webservice.server.util;

import org.apache.log4j.Logger;

import java.io.InputStream;
import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 * User: root
 * Date: 14-7-10
 * Time: 下午2:06
 * To change this template use File | Settings | File Templates.
 */
public class ConfUtil {
    public static Logger logger = Logger.getLogger(ConfUtil.class);
    public static Properties props = new Properties();

    public static Properties getConf(String url) {
        try {
            InputStream in = ConfUtil.class.getResourceAsStream(url);
            props.load(in);
            return props;
        } catch (Exception e) {
            logger.error(e.getMessage());
        }
        return null;
    }

}
